package com.example.server.entity;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * (Post)表实体类
 *
 * @author makejava
 * @since 2022-11-21 09:10:53
 */
@SuppressWarnings("serial")
public class Post extends Model<Post> {
    //帖子id
    private Integer id;
    //用户id
    private Integer userid;
    //帖子标题（25字）
    private String posttitle;
    //帖子正文
    private String postcontent;
    //帖子图片地址1
    private String postphoto1;
    //帖子图片地址2
    private String postphoto2;
    //帖子图片地址3(最多上传三张图片)
    private String postphoto3;
    //帖子发表时间
    private Date createtime;
    //0(待审核)  1(通过)  2(拒绝)
    private Integer audit;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getPosttitle() {
        return posttitle;
    }

    public void setPosttitle(String posttitle) {
        this.posttitle = posttitle;
    }

    public String getPostcontent() {
        return postcontent;
    }

    public void setPostcontent(String postcontent) {
        this.postcontent = postcontent;
    }

    public String getPostphoto1() {
        return postphoto1;
    }

    public void setPostphoto1(String postphoto1) {
        this.postphoto1 = postphoto1;
    }

    public String getPostphoto2() {
        return postphoto2;
    }

    public void setPostphoto2(String postphoto2) {
        this.postphoto2 = postphoto2;
    }

    public String getPostphoto3() {
        return postphoto3;
    }

    public void setPostphoto3(String postphoto3) {
        this.postphoto3 = postphoto3;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getAudit() {
        return audit;
    }

    public void setAudit(Integer audit) {
        this.audit = audit;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }

